package com.example.demo.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//跟AliOSSUtils效果一样
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss")//profix在yml里对应名字
public class AliOSSProperties {
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
}
